from django.urls import path
from snippets import views
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = [
    # 图片上传相关
    path('rest_static/ueditor/info_page_image_upload', views.info_image_update),
    path('rest_static/info_page_icon_upload', views.info_page_icon_upload),
    # 图盘查看相关
    path('rest_static/project_image/<str:name>', views.project_image),
    path('rest_static/project_intruduction/<str:name>', views.project_intruduction),
    path('rest_static/ueditor/project_intruduction/<str:name>', views.project_intruduction_ueditor),
    path('rest_static/ueditor/project_investment_analyse/<str:name>', views.project_investment_analyse),
    path('rest_static/ueditor/project_team/<str:name>', views.project_team),
    path('rest_static/info_page/<str:name>', views.info_page),
    path('rest_static/ueditor/info_page/<str:name>', views.info_page_ueditor),
    

    # 接口相关
    path('api/test', views.test),
    path('api/login', views.login),
    path('api/project_type_list', views.project_type_list),
    path('api/project_abstruct_by_type/<int:project_type>', views.project_abstruct_by_type),
    path('api/project_abstruct_by_new/<int:count>', views.project_abstruct_by_new),
    path('api/project_intruduction_content/<int:project_id>', views.project_intruduction_content),
    path('api/project_team_content/<int:project_id>', views.project_team_content),
    path('api/project_investment_analyse_by_project/<int:project_id>/<int:one_page_count>/<int:page_index>', views.project_investment_analyse_by_project),
    path('api/project_investment_analyse_content/<int:investment_analyse_id>', views.project_investment_analyse_content),
    path('api/info_buy', views.info_buy),
    path('api/info_abstruct_get/<int:one_page_count>/<int:page_index>/<int:order_publish_time>/<int:status>/<int:project_id>', views.info_abstruct_get),
    path('api/info_content_get/<int:info_id>', views.info_content_get),
    path('api/info_folder_create', views.info_folder_create),
    path('api/info_folder', views.info_folder),
    path('api/info_publish', views.info_publish),
    path('api/official_address', views.official_address),

]
urlpatterns = format_suffix_patterns(urlpatterns)
print(urlpatterns) 